package com.ljf.tijian.service;

import com.ljf.tijian.dto.ApiResponse;
import com.ljf.tijian.mapper.SetmealMapper;
import com.ljf.tijian.pojo.Setmeal;
import com.ljf.tijian.service.Impl.SetmealServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SetmealService implements SetmealServiceImpl {

    @Autowired
    SetmealMapper setmealMapper;

    @Override
    public ApiResponse getAllSetmeals() {
        List<Setmeal> setmealList = setmealMapper.selectAllSetmeals();
        return new ApiResponse<>(200,"SUCCESS",setmealList);
    }
}
